<!DOCTYPE html>
<!-- saved from url=(0034)https://ty.easymaner.com/Task/Main -->
<html style="font-size: 36.8px;">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <title>主页</title>
    <link href="/static/iconfont.css" rel="stylesheet">
    <meta name="format-detection" content="telephone=yes">
    <style type="text/css">
        * {
            font-weight: normal;
            font-size: 12px;
        }

        html {
            font-size: 100px
        }

        body {
        }

        .main {
            max-width: 7.5rem;
            margin: 0 auto;
            padding-bottom: .6rem;
            background: transparent;
            /*background: #fff;*/
            padding-top: 0.7rem;
        }

        .icon-loading {
            display: inline-block;
            -webkit-transition-property: -webkit-transform;
            -webkit-transition-duration: 1s;
            -moz-transition-property: -moz-transform;
            -moz-transition-duration: 1s;
            -webkit-animation: rotate 1s linear infinite;
            -moz-animation: rotate 1s linear infinite;
            -o-animation: rotate 1s linear infinite;
            animation: rotate 1s linear infinite;
        }

        @-webkit-keyframes rotate {
            from {
                -webkit-transform: rotate(0deg)
            }

            to {
                -webkit-transform: rotate(360deg)
            }
        }

        @-moz-keyframes rotate {
            from {
                -moz-transform: rotate(0deg)
            }

            to {
                -moz-transform: rotate(359deg)
            }
        }

        @-o-keyframes rotate {
            from {
                -o-transform: rotate(0deg)
            }

            to {
                -o-transform: rotate(359deg)
            }
        }

        @keyframes rotate {
            from {
                transform: rotate(0deg)
            }

            to {
                transform: rotate(359deg)
            }
        }

        .back {
            height: 0.75rem;
            border-bottom: 1px solid #dddee1;
            position: fixed;
            top: 0;
            z-index: 99999;
            width: 7.5rem;
            background: #e9eaec;
            line-height: 0.75rem;
            padding-left: 0.2rem;
        }

        .back > a {
            display: inline-block;
            height: 0.6rem;
            font-size: 0.3rem;
            color: #1c2438;
            text-decoration: none;
        }

        .back > a > i {
            font-size: 0.3rem;
            color: #1c2438;
        }
    </style>
    <script src="/static/fastclick.min.js"></script>
    <script src="/static/vue.min.js"></script>
    <script src="/static/jquery-1.10.2.min.js"></script>
    <script src="/static/layui.extend.js"></script>
    <script src="/static/boot.min.js"></script>
    <script src="/static/layui.js"></script>
    <link href="/static/font_1024638_ykchct69upp.css" rel="stylesheet">
    <link id="layuicss-layer" rel="stylesheet" href="/static/layer.css" media="all">
</head>

<!--
<body style="padding: 0px; margin: 0px; overflow-x: hidden; background: url(&quot;/UpFiles/Bg/3F14AA2E9918495D94094E1811B548A0.jpg&quot;);">
-->
<div id="myloading" style="display: none;">
    <i class="iconfont icon-loading"></i>
</div>
<form action="/onLogout" data-ajax="true" data-ajax-mode="replace" data-ajax-update="#myPnl"
      id="form0" method="get">
    <script type="text/javascript">
        $(document).keydown(function (event) {
            switch (event.keyCode) {
                case 13:
                    return false;
            }
        });
        var browser = {
            versions: function () {
                var u = navigator.userAgent, app = navigator.appVersion;
                return {
                    trident: u.indexOf('Trident') > -1, //IE内核
                    presto: u.indexOf('Presto') > -1, //opera内核
                    webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
                    gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1,//火狐内核
                    mobile: !!u.match(/Mobile/), //是否为移动终端
                    ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
                    android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器
                    iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器
                    iPad: u.indexOf('iPad') > -1, //是否iPad
                    webApp: u.indexOf('Safari') == -1, //是否web应该程序，没有头部与底部
                    weixin: u.indexOf('MicroMessenger') > -1, //是否微信 （2015-01-22新增）
                    qq: u.match(/\sQQ/i) == " qq" //是否QQ
                };
            }()
        }
        !function (n) {
            var e = n.document,
                t = e.documentElement,
                i = 750,
                d = i / 100,
                o = "orientationchange" in n ? "orientationchange" : "resize",
                a = function () {
                    var n = t.clientWidth || 320;
                    n > 750 && (n = 750);
                    t.style.fontSize = n / d + "px"
                };
            e.addEventListener && (n.addEventListener(o, a, !1), e.addEventListener("DOMContentLoaded", a, !1))
        }(window);
        $(function () {
            FastClick.attach(document.body);
        });
    </script>


    <style type="text/css">
        .header {
            height: 2.2rem;
            background: -webkit-linear-gradient(left, #569CFE, #7671FF); /* Safari 5.1 - 6.0 */
            background: -o-linear-gradient(right, #569CFE, #7671FF); /* Opera 11.1 - 12.0 */
            background: -moz-linear-gradient(right, #569CFE, #7671FF); /* Firefox 3.6 - 15 */
            background: linear-gradient(to right, #569CFE, #7671FF); /* 标准的语法 */
        }

        .header > .headerimg {
            width: 1.4rem;
            height: 1.4rem;
            padding: 0.4rem;
            float: left;
        }

        .header > .headerimg > img {
            height: 1.4rem;
            width: 1.4rem;
            border-radius: 1.4rem
        }

        .header > .header-right {
            margin-left: 2.2rem;
            height: 2.2rem;
        }

        .header > .header-right > .title {
            font-size: 0.4rem;
            color: #fff;
            height: 0.4rem;
            padding: 0.7rem 0 0.1rem 0;
        }

        .header > .header-right > .filter {
            font-size: 0.28rem;
            color: #fff;
        }

        .main-rows {
            padding: 0.2rem;
        }

        .main-rows > .title {
            font-size: 0.32rem;
            color: #1c2438;
            height: 0.6rem;
            line-height: 0.6rem;
        }

        .main-rows > hr {
            color: #e9eaec;
            height: 0px;
            border-top: 1px solid #999;
            border-right: 0px;
            border-bottom: 0px;
            border-left: 0px;
        }

        .main-rows > .content {
            padding: 0.15rem 0
        }

        .menus {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .menus > li {
            width: 1.77rem;
            height: 2rem;
            float: left;
        }

        .menus > li > a {
            display: block;
            height: 2rem;
            width: 100%;
            text-align: center;
            color: #495060;
            text-decoration: none;
        }

        .menus > li > a > i {
            display: inline-block;
            height: 1.2rem;
            width: 1.2rem;
            font-size: 0.6rem;
            line-height: 1.2rem;
            border-radius: 0.3rem;
            color: #fff;
        }

        .menus > li > a > p {
            font-size: 0.3rem;
            color: #495060;
            text-align: center;
            padding: 0;
            margin: 0;
        }

        .login-out {
            font-size: 0.4rem;
            color: #fff;
            float: right;
            margin-right: 0.4rem;
        }

        .login-out-button {
            font-size: 0.4rem;
            color: #fff;
            padding: 0;
            background-color: transparent;
            border: 1px solid transparent;
            margin-left: 0.4rem;
            float: right;
            margin-right: 0.4rem;
        }
    </style>

    <input type="hidden" id="txtjson"
           value="{&quot;code&quot;:0,&quot;msg&quot;:null,&quot;data&quot;:[{&quot;ID&quot;:1,&quot;NAME&quot;:&quot;熟客营销&quot;,&quot;ICON&quot;:&quot;icon-call&quot;,&quot;URL&quot;:&quot;Task/Index&quot;,&quot;STYLE&quot;:&quot;background:#2d8cf0;&quot;,&quot;SORT&quot;:1,&quot;IF_ACCESS&quot;:true},{&quot;ID&quot;:2,&quot;NAME&quot;:&quot;号码查询&quot;,&quot;ICON&quot;:&quot;icon-search&quot;,&quot;URL&quot;:&quot;Task/SearchMobile&quot;,&quot;STYLE&quot;:&quot;background:#19be6b;&quot;,&quot;SORT&quot;:2,&quot;IF_ACCESS&quot;:true},{&quot;ID&quot;:3,&quot;NAME&quot;:&quot;营销政策&quot;,&quot;ICON&quot;:&quot;icon-book&quot;,&quot;URL&quot;:&quot;Knowledge/Index&quot;,&quot;STYLE&quot;:&quot;background:#ff9900;&quot;,&quot;SORT&quot;:3,&quot;IF_ACCESS&quot;:true},{&quot;ID&quot;:4,&quot;NAME&quot;:&quot;酬金诊断&quot;,&quot;ICON&quot;:&quot;icon-money&quot;,&quot;URL&quot;:null,&quot;STYLE&quot;:&quot;background:#1c2438;&quot;,&quot;SORT&quot;:4,&quot;IF_ACCESS&quot;:false},{&quot;ID&quot;:5,&quot;NAME&quot;:&quot;商铺聚焦&quot;,&quot;ICON&quot;:&quot;icon-write&quot;,&quot;URL&quot;:null,&quot;STYLE&quot;:&quot;background:#ed3f14;&quot;,&quot;SORT&quot;:5,&quot;IF_ACCESS&quot;:false}]}">
    <div id="myvue" class="main" style="padding-top: 0px; min-height: 923px;">
        <div class="header">
            <div class="headerimg"><img src="/static/cmcclogo.jpg"></div>
            <div class="header-right">
                <div class="title"> 体验版</div>
                <div class="filter">Hi，欢迎使用体验版微营销助手</div>
                <div>
                <button onclick="onLoginOut()" class="login-out-button">退出</button>
                    {% if request.session.is_login %}
                        <input type="hidden" id="is_login" value="1">
                    <button class="login-out-button" id="userBtn">【{{ request.session.uname }}】</button>
                    {% else %}
                         <input type="hidden" id="is_login" value="0">
                    <div onload="redirectToLogin();"></div>
                    {% endif %}

                </div>
            </div>
        </div>
        <div class="main-rows">
            <div class="title">功能导航</div>
            <hr>
            <div class="content">
                <ul class="menus">
                    <li><a href="/callSale"><i class="iconfont icon-call" style="background: rgb(45, 140, 240);"></i>
                        <p>熟客营销</p></a></li>
                    <li><a href="/searchMobile"><i class="iconfont icon-search"
                                                   style="background: rgb(25, 190, 107);"></i>
                        <p>号码查询</p></a></li>
                    <li><a href="javascript:layui.layer.msg(&#39;暂无权限&#39;);"><i class="iconfont icon-book"
                                                                              style="background: rgb(255, 153, 0);"></i>
                        <p>营销政策</p></a></li>
                    <li><a href="javascript:layui.layer.msg(&#39;暂无权限&#39;);"><i class="iconfont icon-money"
                                                                                 style="background: rgb(28, 36, 56);"></i>
                        <p>酬金诊断</p></a></li>
                    <li><a href="javascript:layui.layer.msg(&#39;暂无权限&#39;);"><i class="iconfont icon-write"
                                                                                 style="background: rgb(237, 63, 20);"></i>
                        <p>商铺聚焦</p></a></li>
                </ul>
            </div>
        </div>
    </div>
<!--
    <script type="text/javascript">
        window.onload=function () {
            var il = document.getElementById("is_login").value;
            alert(il);
            if (il == 0) {
                self.location.href("/login");
            }
        }
    </script>
    -->

    <script type="text/javascript">
        $(document).ready(function(){
            $("#userBtn").attr("disabled",true);
            var il = document.getElementById("is_login").value;
            if (il == 0) {
                $(window).attr('location', '/login');
            }

        });
    </script>
    <script type="text/javascript">
        var filePathRoot = '/';
        var txt = $("#txtjson").val();
        var json = $.parseJSON(txt);

        for (var i = 0; i < json.data.length; i++) {
            if (!json.data[i].URL == '') {
                json.data[i].URL = filePathRoot + json.data[i].URL;
            } else {
                json.data[i].URL = '暂未开放';
            }
        }
        var layer;
        var vm = new Vue({
            el: '#myvue',
            data: json,
            mounted: function () {
                layui.use('layer', function () {
                    layer = layui.layer;
                });
            }
        });

        //登出
        function onLoginOut() {
            $.get("/onLogout", {}, function () {
                window.location.href = "/login";
            });
        }
        // 查看用户信息
        var layer;
        function onGetUserInfo() {
            layer.msg("暂无权限查看");
            window.location.href = "#";
        }
    </script>
    <script type="text/javascript">

        $(function () {
            $("#myloading").hide();
            SetMainHeight();
        });

        function SetMainHeight() {
            var wh = $(window).height();
            var mh = $(".main").height();
            if (mh < wh) {
                $(".main").css('min-height', wh + "px");
            }
        }

        $(window).resize(function () {
            SetMainHeight();
        });
    </script>
</form>


</body></html>